package com.trainoo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p> add description here </p>
 *
 * @author tao.zhou
 * @version 1.0
 * @date 2020/6/16 17:00
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "elastic-search")
public class ElasticSearchConfig {

    /**
     *  ES集群名,默认值
     */
    private String clusterName;

    /**
     * ES集群中节点的域名或IP
     */
    private String hostName;

    /**
     * ES连接端口号
     */
    private Integer port;

    /**
     * ES查询的索引名称
     */
    private String indices;

    /**
     * ES查询的Types
     */
    private String types;
}
